package com.wtwd.device.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2021-09-16
 */
@ApiModel(value="FriendRequests对象", description="")
public class FriendRequests implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "好友申请消息表主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "申请人用户id",required = true)
    private Long proposer;

    @ApiModelProperty(value = "被申请人用户id",required = true)
    private Long respondent;

    @ApiModelProperty(value = "1:申请中，2：同意，3拒绝",required = false)
    private Integer state;

    @ApiModelProperty(value = "申请时间",required = false)
    private Long applyTime;

    @ApiModelProperty(value = "回复时间",required = false)
    private Long recoveryTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getProposer() {
        return proposer;
    }

    public void setProposer(Long proposer) {
        this.proposer = proposer;
    }

    public Long getRespondent() {
        return respondent;
    }

    public void setRespondent(Long respondent) {
        this.respondent = respondent;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getApplyTime() {
        return applyTime;
    }

    public void setApplyTime(Long applyTime) {
        this.applyTime = applyTime;
    }

    public Long getRecoveryTime() {
        return recoveryTime;
    }

    public void setRecoveryTime(Long recoveryTime) {
        this.recoveryTime = recoveryTime;
    }

    @Override
    public String toString() {
        return "FriendRequests{" +
        "id=" + id +
        ", proposer=" + proposer +
        ", respondent=" + respondent +
        ", state=" + state +
        ", applyTime=" + applyTime +
        ", recoveryTime=" + recoveryTime +
        "}";
    }
}
